package com.mangguo.tingjian.statistics.service;

import com.mangguo.tingjian.statistics.dto.RetentionRateDTO;
import com.mangguo.tingjian.statistics.entity.DwOpenApp;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mangguo.tingjian.statistics.req.RetentionRateLineReq;
import com.mangguo.tingjian.user.dto.CountResult;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author auto
 * @since 2019-12-01
 */
public interface IDwOpenAppService extends IService<DwOpenApp> {

//    /**
//     * 获得留存率折线
//     * @param retentionRateLineReq
//     * @return
//     */
//    List<RetentionRateDTO> getRetentionRateLine(RetentionRateLineReq retentionRateLineReq);

    /**
     * 获得留存率数据
     * @param retentionRateLineReq
     * @return
     */
    List<RetentionRateDTO> getRetentionRate(RetentionRateLineReq retentionRateLineReq);

    /**
     * 获取用户使用时长按日分析
     * @param start
     * @param end
     * @param operateGroup
     * @return
     */
    List<CountResult> getUserPlayTime(Integer start, Integer end, Integer operateGroup);
}
